@extends('admin/layout')
@section('title','消息详情')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        消息管理
    </h1>
    <ol class="breadcrumb">
        <li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 管理首页</a></li>
        <li><i class="fa fa-users"></i> 消息管理</li>
        <li class="active">消息详情</li>
    </ol>
</section>
<div class="row">
    <div class="col-md-3">
        <a href="/admin/message" class="btn btn-primary btn-block margin-bottom">返回消息列表</a>
        <div class="box box-solid">
            <div class="box-header with-border">
                <h3 class="box-title">Folders</h3>
                <div class="box-tools">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                    </button>
                </div>
            </div>
            <div class="box-body no-padding">
                <ul class="nav nav-pills nav-stacked">
                    <li><a href="/admin/message"><i class="fa fa-inbox"></i> 新消息 <span
                                    class="label label-primary pull-right">12</span></a></li>
                    <li><a href="/admin/message/create"><i class="fa fa-envelope-o"></i> 发消息</a></li>
                    <li><a href="/admin/message/receive"><i class="fa fa-file-text-o"></i> 收件箱</a></li>
                    <li><a href="/admin/message/send"><i class="fa fa-filter"></i> 已发送 <span
                                    class="label label-warning pull-right">65</span></a></li>
                    <li><a href="/admin/message/delete"><i class="fa fa-trash-o"></i> 已删除</a></li>
                </ul>
            </div><!-- /.box-body -->
        </div><!-- /. box -->
        <div class="box box-solid">
            <div class="box-header with-border">
                <h3 class="box-title">Labels</h3>
                <div class="box-tools">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                    </button>
                </div>
            </div>
            <div class="box-body no-padding">
                <ul class="nav nav-pills nav-stacked">
                    <li><a href="#"><i class="fa fa-circle-o text-red"></i> Important</a></li>
                    <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> Promotions</a></li>
                    <li><a href="#"><i class="fa fa-circle-o text-light-blue"></i> Social</a></li>
                </ul>
            </div><!-- /.box-body -->
        </div><!-- /.box -->
    </div><!-- /.col -->
    <div class="col-md-9">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">{{$data->sname}}</h3>
                <div class="box-tools pull-right">
                    <a href="#" class="btn btn-box-tool" data-toggle="tooltip" title="Previous"><i
                                class="fa fa-chevron-left"></i></a>
                    <a href="#" class="btn btn-box-tool" data-toggle="tooltip" title="Next"><i
                                class="fa fa-chevron-right"></i></a>
                </div>
            </div><!-- /.box-header -->
            <div class="box-body no-padding">
                <div class="mailbox-read-info">
                    <h3>来自<b>{{$data->rname}}</b>的消息</h3>
                    <h5>发送时间 <span class="mailbox-read-time pull-right">{{$data->stime}}</span>
                    </h5>
                </div><!-- /.mailbox-read-info -->
                <div class="mailbox-controls with-border text-center">
                    <div class="btn-group">
                        <button class="btn btn-default btn-sm" data-toggle="tooltip" title="Delete"><i
                                    class="fa fa-trash-o"></i></button>
                        <button class="btn btn-default btn-sm" data-toggle="tooltip" title="Reply"><i
                                    class="fa fa-reply"></i></button>
                        <button class="btn btn-default btn-sm" data-toggle="tooltip" title="Forward"><i
                                    class="fa fa-share"></i></button>
                    </div><!-- /.btn-group -->
                    <button class="btn btn-default btn-sm" data-toggle="tooltip" title="Print"><i
                                class="fa fa-print"></i></button>
                </div><!-- /.mailbox-controls -->
                <div class="mailbox-read-message">
                    <p>{{$data->content}}</p>
                    <br>                    <br>                    <br>             <br>                    <br>                    <br>
                    <br>
                    <br>
                </div><!-- /.mailbox-read-message -->
            </div><!-- /.box-body -->
            <div class="box-footer">

            </div><!-- /.box-footer -->
            <div class="box-footer">
                <div class="pull-right">
                    <button class="btn btn-default"><i class="fa fa-reply"></i> Reply</button>
                    <button class="btn btn-default"><i class="fa fa-share"></i> Forward</button>
                </div>
                    <form action="/admin/message/{{$data -> time}}" method="post">
                        {{csrf_field()}}
                        {{method_field('DELETE')}}
                        <button class="btn btn-default"><i class="fa fa-trash-o"></i>删除</button>
                    </form>
                {{--<button class="btn btn-default"><i class="fa fa-print"></i> Print</button>--}}
            </div><!-- /.box-footer -->
        </div><!-- /. box -->
    </div><!-- /.col -->
</div><!-- /.row -->

</section>
@stop